import turtle
from tkinter import *
b, c, a = int(input()), int(input()), int(input())
coord = [0 * a + b, 0 * a + c,
         10 * a + b, 0 * a + c,
         10 * a + b, 10 * a + c,
         20 * a + b, 10 * a + c,
         20 * a + b, 0 * a + c,
         30 * a + b, 0 * a + c,
         30 * a + b, 20 * a + c,
         0 * a + b, 20 * a + c]
if a == 0 and 0 <= b <= 500 and 0 <= y <= 500:
    pass
else:
    if a > 0 and 0 * a + b >= 0 and 0 * a + c >= 0 and 30 * a + b <= 500 and 20 * a + c <= 500:
        pass
    else:
        if a < 0 and 30 * a + b >= 0 and 20 * a + c >= 0 and 0 * a + b <= 500 and 0 * a + c <= 500:
            pass
        else:
            print("Размер фигуры первышает максимальный размер поля.")
            exit()
root = Tk()
root.title("IT-марафон")
root.geometry("500x500")
canvas = Canvas(bg = "white", width = 500, height = 500)
canvas.create_polygon(coord)
canvas.pack(anchor=CENTER, expand = 1)
root.mainloop()
